package work.droit;

import work.droit.data.Categorie;
import work.droit.data.Definition;
import work.droit.data.Fiche;
import work.droit.data.Jurisprudence;
import work.droit.data.Question;
import work.util.data.HsqlDb.HsqlDbUtil;
import work.util.data.table.Tables;

public class InitStrap
{
	public static void main(String[] args)
	{
		try
		{
			HsqlDbUtil.connect();
			new Categorie().createTable();
			new Fiche().createTable();
			new Question().createTable();
			new Jurisprudence().createTable();
			new Definition().createTable();
			Tables.initUtilTables();
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
		finally
		{
			HsqlDbUtil.disconnect();
		}
	}
}
